@* Generator: Template TypeVisibility: Internal *@
@using System.Globalization
@using System.IO
@using System.Web
@using Elmah
@using Elmah.Analysis
@inherits WebTemplateBase
@{
    var analysis = new ConfigurationAnalysis(Context);
    analysis.Run();

}
ELMAH Configuration Analysis
===============================================================
@if (!analysis.IsHandlerConfiguredSecurely)
{
@:
@:URGENT - The advice below states that the handler is not configured securely.
@:Please review it as a matter of urgency along with the advice here: 
@:
@:http://code.google.com/p/elmah/wiki/SecuringErrorLogPages
@:
@:The current recommended way of configuring the handler is as follows:
@:
@:<location path="elmah.axd">
@:  <system.web>
@:    <httpHandlers>
@:      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
@:    </httpHandlers>
@:    <authorization>
@:      <allow users="*" />
@:      <allow roles="elmah" />
@:      <deny users="*" />
@:    </authorization>
@:  </system.web>
@:  <system.webServer>
@:    <handlers>
@:      <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
@:    </handlers>
@:  </system.webServer>
@:</location>
}
@foreach (var item in analysis.Results)
{
@:
@Html(item.Name) @: 
@:---------------------------------------------------------------
if (!string.IsNullOrEmpty(item.Setting))
{
@:Setting:     @Html(item.Setting)
}
if (!string.IsNullOrEmpty(item.Description))
{
@:Description: @Html(item.Description)
}
if (!string.IsNullOrEmpty(item.Setting))
{
@:Advice:      @Html(item.Advice)
}
}